//
//  YXUser.swift
//  微博YX
//
//  Created by apple on 15/11/27.
//  Copyright © 2015年 lyx. All rights reserved.
//

import UIKit

class YXUser: NSObject {
    
    ///	ID
    var id: Int = 0
    
    
    /// 昵称
    var screen_name: String?
    
    /// 头像
    var profile_image_url: String?
    
    /// 认证用户
    var verified: Bool = false
    
    var verified_type: Int = 0
    
    /// 等级
    var mbrank: Int = 0
    
    
    /// 字典转模型
    init(dic:[String: AnyObject]){
      super.init()
        setValuesForKeysWithDictionary(dic)
    }
    
//    找不到
    override func setValue(value: AnyObject?, forUndefinedKey key: String) { }
    
    
    
//    打印
    override var  description: String {
        let properties = ["id", "screen_name", "profile_image_url", "verified", "verified_type", "mbrank"]
        
        return "\n\t\t用户模型: \(dictionaryWithValuesForKeys(properties))"
    }
    
}
